Blog Man
What Is Blog Man?
Blog Man is a blog manager built in ColdFusion. A year in the making, this application balances manageability with scalability. It features many of the tools you've probably seen in Movable Type and other blog applications.
Blog Man does not require a database per se, like Microsoft SQL Server, Access, or MySQL. It holds its data inside XML files for easy retrieval and manipulation when needed. Archives are dynamically created on the fly from these XML files. When a change is made to the application, the data is retrieved from and parsed into static HTML files. If you delete the XML files, the application still works.
Other blog applications require you to republish the entire site whenever you make a change. This is too much work. Blog Man uses SSI to include the header and footer of the template, which eliminates the need to republish your site when you make changes.
Installing Blog Man
Installation is a snap. You make the following changes in /xml/config.xml:
Note: Any additional children added to the config file are available as local vars in blog.cfc.
- Make sure your server allows server-side includes (SSI).
- Set up
index.shtmlas the default page. - Unzip blogman.zip into a directory under your website root, such as
http://localhost/, or under your web server's webroot, such asC:\CFusionMX\wwwroot. After unzipping the files your directory should look likeC:\CFusionMX\wwwroot\blogmanorC:\CFusionMX\wwwroot\www.cfm-applications.com\blogman. - Change
absoluteBlogURLto the absolute root of the Blog Man application in theconfig.xmlfile under the XML folder. For example: forhttp://localhost/myblog/, changeabsoluteBlogURLto/myblog/; forhttp://localhost/, changeblogURLto/. - Change
blogURLto the URL of Blog Man without the trailing slash. For example:http://localhost - Compile the Blog Man files (optional).
- Log in to the administrator at
/admin/with "admin" as the username and password. - Click the Manage Users link on the left and enter a new user.
- Log out and log in with the new user you just created. Remove the default username with which you previously logged in.
Click the Manage Templates link, place HTML code in a form field, and click Save Changes to publish the blog. This creates a template file automatically and includes your entries in your design.
-
You can use the following variables in your template:
<$blogman:entries/$>includes your entries on the page (required)<$blogman:archives/$>includes the archive select list<$blogman:categories/$>includes your category list<$blogman:absoluteURL/$>returns the absolute URL of your blog (required on all links)<$blogman:calendar/$>returns the current month's calendar<$blogman:recententries/$>returns your recent entries list<$blogman:emailsubscriptions/$>returns the e-mail subscription form<$blogman:resourcefeeds/$>includes a link to the RSS 2.0 feed
- Add a category in which to archive your entries.
- Enter a title, description, and story for an entry. When you publish this entry into a category, it gets displayed in the blog.
- Click the View Site link on the options menu in the administrator.
Many more features are planned for this application in Version 2, such as FTP publishing to a remote server, image uploading, WYSIWYG editing, VoiceXML (so you can blog from your phone), publishing to PDAs, Flash interfaces, and more. Feel free to e-mail the author at bryan.hogan@cfm-applications.com.